<?php
include("../inc/global.inc");
include("../inc/fun.php");
include("../steps.php");
if($_GET['del_act']){
$urls=$_SERVER['HTTP_REFERER'];
mysql_query("delete from job_per_search where member_id='$_COOKIE[job_user_id]' and id='".$_GET['del_id']."'");
echo "<script>location='".$urls."'</script>";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>搜索器管理-我的搜索器-三帝招聘网</title>
<link href="../css/body.css" rel="stylesheet" type="text/css"/>
<link href="css/head.css" rel="stylesheet" type="text/css"/>
<link href="css/search_list.css" rel="stylesheet" type="text/css"/>
<link href="../css/foot.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<?php include("../inc/top.php");?>
<div class="menuBox1">
<a href="/member/">管理中心</a>
<a href="/member/show.php">我的简历</a>
<a href="/member/search_manage.php" class="hover">我的搜索器</a>
<a href="/member/favorites.php">收藏夹</a>
<a href="/member/cqjob.php">发件夹</a>
<a href="/member/inbox.php">收件夹</a>
<div class="onl"></div>
</div>
<div id="mian">
  <div id="box">
  <div class="JobBox sideyellow backyellow">

<div class="mian_Co">
  <div class="title size14 topside6"><strong>搜索与订阅</strong></div>
  <div class="title1">您最多可以保存 5 个职位搜索器，您目前已有 2 个搜索器，还可以保存 3 个搜索器</div>
  <table width="99%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="table">
    <tbody>
		<tr>
		  <td width="100%" height="46"><table id="main_body" border="0" cellpadding="0" cellspacing="0" style="border:1px #ccc solid">
              <tr>
                <td width="197" height="29" bgcolor="#FFF5EC"><b>&nbsp;搜索器名称</b></td>
                <td width="428" bgcolor="#FFF5EC"><b>搜索条件</b></td>
                <td width="134" align="left" bgcolor="#FFF5EC"><b>创建时间</b></td>
                <td width="101" align="center" bgcolor="#FFF5EC"><b>操作</b></td>
                <td width="81" align="center" bgcolor="#FFF5EC">搜索职位</td>
              </tr>
                <?php
                   $sql="select * from job_per_search   where member_id='$_COOKIE[job_user_id]' order by id desc limit 5";
                   $rs=mysql_query($sql);
                   while($row=mysql_fetch_array($rs)){
                ?>			  
              <tr>
                <td height="30"><?=$row[p_title]?></td>
                <td><?php if($row[p_hy]){
					$rs2=@mysql_query("select * from job_hy where id='$row[p_hy]'");
					$row2=@mysql_fetch_array($rs2);
					echo $row2[job_hy_name]."+";}
					?><?php if($row[p_nature]){echo job_nature($row[p_nature]);}?>+<?=$row[p_date]?>天</td>
                <td align="left"><?=date("Y-m-d",strtotime($row[p_addtime]))?></td>
                <td align="center"><a href="search_edit.php?id=<?=$row['id']?>">修改</a> | <a href="search_manage.php?del_act=ok&del_id=<?=$row['id']?>">删除</a></td>
                <td align="center">
				<form method="get" action="/jobs.php">
				   <input type="hidden" name="job_class" value="<?=$row[p_class_1]?>" />
				   <input type="hidden" name="job_smill" value="<?=$row[p_class_2]?>" />
				   <input type="hidden" name="c_provinces4" value="<?=$row[p_pro]?>" />
				   <input type="hidden" name="c_city4" value="<?=$row[p_city]?>" />
				   <input type="hidden" name="job_hy" value="<?=$row[p_hy]?>" />
				   <input type="hidden" name="job_date" value="<?=$row[p_date]?>" />
				   <input type="hidden" name="job_nature" value="<?=$row[p_nature]?>" />
				   <input type="hidden" name="job_edu" value="<?=$row[p_exp]?>" />
				   <input type="hidden" name="job_exp" value="<?=$row[p_exp]?>" />
				   <input type="hidden" name="job_salary" value="<?=$row[p_salary]?>" />
				   <input type="submit" value="搜索" />
				</form></td>
              </tr>
			  <?php }?>
            </table></td>
		  </tr>
		<tr>
		  <td height="46" align="center"><form method="post" action="search_add.php"><input type="Submit" class="picbutt1" value="添加新的搜索器"/></form></td>
		  </tr>
    </tbody>
  </table>
</div>
</div>
<div class="onl"></div>
<div class="onl"></div>
</div>
<div class="onl"></div>
</div>
<?php include("../inc/foot.php");?>
</body>
</html>